package com.mozai.shopping.model.http;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductTypeUpdateReq implements Serializable {

    @NotNull(message = "商品类型id 不能为空")
    private Integer id;

    @NotBlank(message = "商品类型名称 不能为空")
    private String productTypeName;
}
